package cn.wolfcode.luowowo2.member.service;

import cn.wolfcode.luowowo2.common.util.DisableExeption;
import cn.wolfcode.luowowo2.member.domain.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Albert on 2019/7/5.
 */
public interface IUserInfoService {
    UserInfo get(Long id);

    boolean checkPhone(String phone);

    void userRegist(String phone, String nickname, String password, String rpassword, String verifyCode) throws DisableExeption;

    void sendVerifyCode(String phone) throws DisableExeption;

    String userLogin(String username, String password) throws DisableExeption;

    List<UserInfo> list();
}
